package com.xuecheng.content.model.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel("课程教师关系类")
public class CourseTeacher implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id,新增时不传")
    @TableId(type= IdType.AUTO)
    private Long id;

    @ApiModelProperty("课程id")
    private Long courseId;

    @ApiModelProperty("教师id，新增时不传")
    private Long teacherId;

    @ApiModelProperty("教师姓名")
    private String teacherName;

    @ApiModelProperty("教师工号")
    private String teacherNumber;

    @ApiModelProperty("教师职位")
    private String position;

    @ApiModelProperty("教师简介")
    private String introduction;

    @ApiModelProperty("教师照片")
    private String photograph;

    @ApiModelProperty("创建时间，新增时不传")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createDate;
}
